import request from '@/utils/request'

// 查询回归列表
export function listReplay(query) {
  return request({
    url: '/stock/replay/list',
    method: 'get',
    params: query
  })
}

// 查询回归详细
export function getReplay(replayId) {
  return request({
    url: '/stock/replay/' + replayId,
    method: 'get'
  })
}

// 新增回归
export function addReplay(data) {
  return request({
    url: '/stock/replay',
    method: 'post',
    data: data
  })
}

// 修改回归
export function updateReplay(data) {
  return request({
    url: '/stock/replay',
    method: 'put',
    data: data
  })
}

// 删除回归
export function delReplay(replayId) {
  return request({
    url: '/stock/replay/' + replayId,
    method: 'delete'
  })
}
